#ifndef TIMERMS_H
#define TIMERMS_H

#include "Singleton.h"
#include "MutexLocker.h"
#include <ThreadSDL.h>

#include <Windows.h>

class TimerMS : public Uncopyable//, public ThreadSDL
{
	TimerMS();
	friend class Singleton<TimerMS>;
public:
	//virtual void Work() override;

	void SetTimeMS(unsigned int ms);
	unsigned int GetTimeMS() const;
	unsigned int GetDtMS() const;
	void UpdateTime();
private:

private:
	unsigned int m_ticksPreviousFrame;
	Mutex m_mutex;
	unsigned int m_dtMS;
	unsigned int m_currentTimeMS;
};

typedef Singleton<TimerMS> TheTimerMS;

#endif //TIMERMS_H